home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / patches / imagine / irj.doc < prev    next >
Encoding:
Text File  |  1996-02-26  |  14.2 KB  |  391 lines

  1.  
  2.   IRJ.doc                                                           20-Dec-95
  3.  
  4.  
  5.  
  6.   Intro:
  7.  
  8.       Welcome, my fellow Imagine users!  This is the first general release of
  9.  
  10.   the Imagine-Requester-Jester (also known as IRJ) for the Amiga versions of
  11.  
  12.   Imagine3.0+ by Impulse.
  13.  
  14.       Let me preface this doc file by saying that I hate writing docs - I'm
  15.  
  16.   a programmer, not a tech writer.  3^)
  17.  
  18.       What does IRJ do?  Well, IRJ replaces Imagine's calls to its own file
  19.  
  20.   requesters with calls to the system ASL file requester.  IRJ maintains
  21.  
  22.   seperate paths for different file operations(better explained later).  IRJ
  23.  
  24.   can be used to either attach itself to a running version of Imagine, or can
  25.  
  26.   itself launch Imagine.  IRJ runs from the CLI or from its Workbench icon.
  27.  
  28.  
  29.  
  30.   System requirements:
  31.  
  32.       First I should say that IRJ requires WB2.04+, which I hope you are all
  33.  
  34.   running.  IRJ only works with the floating point versions of Imagine3.0-4.0.
  35.  
  36.   IRJ also requires that your Imagine executable sizes match mine:
  37.  
  38.  
  39.              Imagine3.0_fp    876412 bytes   26-Apr-94  08:29:14
  40.              Imagine3.1_fp    927060 bytes   19-Sep-94  12:02:36
  41.              Imagine3.2_fp    959876 bytes   20-Mar-95  10:25:22
  42.              Imagine3.3_fp   1019600 bytes   28-Jun-95  12:00:28
  43.              Imagine4.0_fp   1068312 bytes   06-Nov-95  15:28:36
  44.  
  45.  
  46.   IRJ requires these exact file versions because it overwrites the file
  47.  
  48.   requester subroutine calls made by Imagine at known specific offsets in each
  49.  
  50.   program.  (Unfortunately I haven't been able to verify IRJ's compatibility
  51.  
  52.   with PAL revs of Imagine - I understand the file sizes differ, but it still
  53.  
  54.   should work.)  IRJ does not modify your original version of Imagine - rather
  55.  
  56.   it 'hotpatches' Imagine once it's in memory.
  57.  
  58.  
  59.  
  60.   Installation:
  61.  
  62.       type 'lha x IRJ.lha ram:' at a CLI prompt ... some of the icons & dirs
  63.  
  64.   included in this archive require being placed in ram:  If you de-arc'd this
  65.  
  66.   package to another location, some of the icons may need to be modified.
  67.  
  68.   After you gain confidence with IRJ you may move the executable to somewhere
  69.  
  70.   in your command path (say c:), and copy the supplied icons and IRJ config
  71.  
  72.   files to whereever you want.  If you keep the icons, be sure to edit the
  73.  
  74.   tooltypes to reflect any changes you make.
  75.  
  76.  
  77.  
  78.   Usage:
  79.  
  80.       IRJ is designed to be used from the CLI or via a WorkBench icon.
  81.  
  82.  
  83.       From WorkBench:  double-click any of the included icons.
  84.  
  85.          IRJ recognizes the following icon tooltypes:
  86.          -------------------------------------------------------
  87.          CONFIG=            <path&filename of a IRJ config file>
  88.          IMAGINENAME=       <name of imagine executable>
  89.          IMAGINEDIR=        <path to imagine executable>
  90.          IMAGINESTACK=      <stack size to start imagine with>
  91.          IMAGINEPRIORITY=   <adjust imagine priority>
  92.          QUIT=              <quit IRJ without quitting imagine>
  93.  
  94.            these relate closely to the CLI usage except the keywords may not
  95.          be abbreviated and QUIT is not a switch but rather a booleen (ie
  96.          QUIT=T, or QUIT=t)
  97.  
  98.  
  99.       ...or...
  100.  
  101.  
  102.       From any CLI prompt, type 'IRJ help' to find the command template:
  103.  
  104.          IRJ CONFIG/K,ID=IMAGINEDIR/K,IN=IMAGINENAME/K,IS=IMAGINESTACK/N,
  105.             IP=IMAGINEPRIORITY/N,QUIT/S
  106.  
  107.          here are a few CLI examples:
  108.  
  109.             IRJ CONFIG=ram:IRJ.config
  110.             IRJ IP=-1
  111.             IRJ
  112.             IRJ QUIT
  113.             IRJ IMAGINENAME=imagine3.3_fp ID=dh3:imagine3.3 IS=20000
  114.  
  115.  
  116.  
  117.   How it works:
  118.  
  119.       When first run, IRJ reads its default config file (unless another is
  120.  
  121.   specified).  IRJ then looks around to see if Imagine is already running; if
  122.  
  123.   it is, IRJ attaches itself to Imagine, changes Imagine's priority (if
  124.  
  125.   specified) and then waits for the user to quit Imagine, or for a subsequent
  126.  
  127.   invocation of IRJ to signal this one to detach from Imagine and quit.
  128.  
  129.       Whew! ok, so if the first IRJ doesn't find Imagine already running,
  130.  
  131.   it (IRJ) checks IMAGINEDIR and IMAGINENAME to see if you want IRJ to launch
  132.  
  133.   Imagine -
  134.  
  135.    -if not, IRJ waits in the background taking up no time waiting for the user
  136.  
  137.   to start Imagine in some other fashion; when it shows up, IRJ will attach
  138.  
  139.   itself and wait for the user to quit Imagine, or for a subsequent invocation
  140.  
  141.   of IRJ to signal this one to detach from Imagine and quit.
  142.  
  143.    -if so, IRJ will change its current dir to IMAGINEDIR (which must contain
  144.  
  145.   Imagine.pic & Imagine.config - well, not really, but that's where Imagine
  146.  
  147.   is going to look for those files) and then run the program IMAGINENAME.
  148.  
  149.   The values of IMAGINESTACK & IMAGINEPRIORITY are both applied if specified.
  150.  
  151.       On subsequent invocations either from an icon or from another CLI (that
  152.  
  153.   first CLI won't return until IRJ finishes) IRJ first checks if the user has
  154.  
  155.   specified the QUIT option.  If so, this IRJ signals the first IRJ to detach
  156.  
  157.   from Imagine (that is if it had already done so - there's no guarantee) and
  158.  
  159.   then quit.  If no QUIT option, IRJ will then read a IRJ config file if
  160.  
  161.   specified by CONFIG= and pass it on to the original IRJ.
  162.  
  163.    Then, if Imagine is running, IRJ will change Imagine's priority (if
  164.  
  165.   specified) and then quit, ignoring any other arguments.
  166.  
  167.    Else, since Imagine is not running, check IMAGINEDIR and IMAGINENAME to see
  168.  
  169.   if user wants IRJ to launch Imagine.  If not, quit cause I don't see what
  170.  
  171.   you're trying to accomplish.  If so, launch Imagine as I've described before.
  172.  
  173.       I'm sorry that was all so complicated but that's just the way the program
  174.  
  175.   logic worked out.
  176.  
  177.  
  178.  
  179.   Configuring IRJ to your system:
  180.  
  181.       IRJ increases Imagine's flexibility by keeping track of several seperate
  182.  
  183.   paths.  These include directories for objects, DXFs, forms, cycles, effects,
  184.  
  185.   splinepaths, brushmaps, attributes, textures, and particals.
  186.  
  187.       When a new project is begun, Imagine used to create only a directory for
  188.  
  189.   objects in the main <project>.imp drawer.  Now, IRJ creates additional dirs
  190.  
  191.   for those I just listed.  It's up to you what they are called and where they
  192.  
  193.   are created.  They can even point to the same thing (maybe you want your
  194.  
  195.   cycle dir to be the same as your object dir or maybe even put your cycle dir
  196.  
  197.   in your object dir).  By using wildcards in your CONFIG file, you can even
  198.  
  199.   include the project name in part of the directory (the usefullness of this
  200.  
  201.   is explained later).
  202.  
  203.       IRJ config files are plain text files you create with your own word
  204.  
  205.   processor.  Config labels must start in column one and must contain at least
  206.  
  207.   one space between the label and its definition.  Supplying a config label
  208.  
  209.   (followed by at least 1 space) with nothing else on the line tells IRJ to
  210.  
  211.   use the directory from which Imagine was run.  Comments are not allowed on
  212.  
  213.   the same line as a config label definition.
  214.  
  215.       I'll go through the config labels group by group.  To see all of them
  216.  
  217.   listed together see the file from the archive ram:IRJdefaults.cfg
  218.  
  219.  
  220.   configlabel    IRJ-default    description
  221.   -----------    -----------    ----------------------------------------------
  222.   PREFSfile                     Default Imagine config file in prefs editor.
  223.  
  224.   PROJECTdir                    This is the directory Imagine creates/opens
  225.                                 your projects in/from.  You can of course use
  226.                                 the file requester to change this.
  227.  
  228.   PROJECTfile                   Default project name. Imagine creates a
  229.                                 directory for you called <project>.imp in
  230.                                 which it adds a file called 'staging' - it's
  231.                                 this file you load when you want to open a
  232.                                 project(ie. PROJECTS/JESTER.imp/staging = the
  233.                                 JESTER project). Just to be clear here, for
  234.                                 the example just given, PROJECTdir would be
  235.                                 PROJECTS and PROJECTfile would be JESTER, ok?
  236.  
  237.   SUBPROJECTfile                Default subproject name. The same as before,
  238.                                 when Imagine creates a new Subproject, it
  239.                                 creates a dir called <subproject>.pix in
  240.                                 which a file called 'specs' exists, it's
  241.                                 this file you Open to tell Imagine which
  242.                                 subproject you really mean.
  243.  
  244.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  245.  
  246.   When creating a new subproject, these config labels replace Imagine's idea
  247.   of defaults in the subproject requester-
  248.  
  249.   PIXdir                        Default path to render pix to. Useful for
  250.                                 rendering to RAM: or even a PAR
  251.  
  252.   ANIMdir                       Default path to save anims to.
  253.  
  254.   RENDER31+      000            Combine these bits to set button state in
  255.                                 subproject requester. Imagine3.1+
  256.                                  100 - flip fields
  257.                                  010 - field rendered
  258.                                  001 - stereo 3D
  259.  
  260.   RENDERmethod   4              Set this to set render method in subproject
  261.                                 requester. Options are:
  262.                                  0 - b/w wire
  263.                                  1 - b/w shade
  264.                                  2 - color wire
  265.                                  3 - color shade
  266.                                  4 - scanline
  267.                                  5 - trace
  268.  
  269.   WIDTH          320            Sets render size and render aspect values
  270.   HEIGHT         200            in subproject requester.
  271.   XASPECT        6
  272.   YASPECT        7
  273.  
  274.   FILEformat     0              Sets file format for rendering. Options are:
  275.                                  0 - rgbn-12bit
  276.                                  1 - ilbm-12bit
  277.                                  2 - rgbn-24bit
  278.                                  3 - ilbm-24bit
  279.                                  4 - seperate r,g,b
  280.                                  5 - dctv
  281.  
  282.   VIEWmode       0100 (HAM)     Sets state of view mode buttons in sub-
  283.                                 project requester.  You can combine some of
  284.                                 these options:
  285.                                  1000 - AAcs
  286.                                  0100 - HAM
  287.                                  0010 - hires
  288.                                  0001 - lace
  289.  
  290.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  291.                                 
  292.   These config labels determine where the various paths IRJ keeps track of
  293.   start out at-
  294.  
  295.   OBJECTdir      @/objects      Each of these directories are kept track of    
  296.   DXFdir         @/objects      independantly.  Always double check the path
  297.   FORMdir        @/objects      you are saving objects/attribs/splines/etc to
  298.   CYCLEdir       @/objects      since you probably aren't used to having so
  299.   SPLINEdir      @/objects      many paths to manage.  It isn't hard to lose
  300.   BRUSHMAPSdir                  track of which path you are manipulating.
  301.   ATTRIBSdir     @/objects      
  302.   TEXTURESdir                     
  303.   EFFECTSdir                      
  304.   PARTICALSdir   @/objects
  305.  
  306.   The character '@' has special meaning to IRJ for these ten config labels.
  307.   It is replaced with the current PROJECT name.  You'll get unpredictable
  308.   results if you don't open a PROJECT before using a directory with an '@' 
  309.   in it. Some examples (assuming project opened is named 'JESTER')-
  310.  
  311.     @/objects     = JESTER.imp/objects
  312.     @/forms       = JESTER.imp/forms
  313.     @/objects/dxf = JESTER.imp/objects/dxf
  314.     brushmaps/@   = brushmaps/JESTER     <- you can put it at the end too.
  315.     dh1:attribs/@ = dh1:attribs/JESTER   <- '.imp' is chopped off the end
  316.  
  317.   When you create a new PROJECT, IRJ will create directories for each of
  318.   the ten directories it manages.  If you don't want to create all these
  319.   directories just define them to point at ram:
  320.  
  321.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  322.  
  323.   IRJ allows pattern matching for each of the filerequesters it manages.  I
  324.   don't use this myself but some people like using file extensions.  Here are
  325.   the config labels, IRJ defaults and some suggestions-
  326.  
  327.   PROJECTpat        ~(#?.info)      
  328.   NEWSUBPROJECTpat  #?.pix
  329.   OPENSUBPROJECTpat #?specs
  330.   PREFSpat          #?.config
  331.   OBJECTpat         ~(#?.info)        or...  #?.iob
  332.   DXFpat            ~(#?.info)               #?.dxf
  333.   FORMpat           ~(#?.info)
  334.   CYCLEpat          ~(#?.info)
  335.   SPLINEpat         ~(#?.info)
  336.   BRUSHMAPSpat      ~(#?.info)               #?.iff
  337.   ATTRIBSpat        ~(#?.info)               #?.atr
  338.   TEXTURESpat       #?.itx
  339.   EFFECTSpat        #?.ifx
  340.   PARTICALSpat      ~(#?.info)
  341.  
  342.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  343.  
  344.   With these config labels, you can position and resize the filerequesters-
  345.  
  346.   REQwidth          328
  347.   REQheight         222
  348.   REQleftedge       156
  349.   REQtopedge        86
  350.  
  351.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  352.  
  353.  
  354.  
  355.  
  356.   Inevitable plea for money:
  357.  
  358.       I put a lot of time into creating IRJ and making it so configurable for
  359.  
  360.   all to use.  If you use this program and feel it's worth five bucks($5 ~=
  361.  
  362.   8 DM for you europeans), please stuff it in an envelope and send it to me.
  363.  
  364.   You can also drop me a postcard with your comments about IRJ or just say hi!;
  365.  
  366.   I'd like to know how many AMIGA users are left out there.
  367.  
  368.       Please post this archive to your local BBS's and let your friends know
  369.  
  370.   about IRJ!
  371.  
  372.  
  373.     Kirk Piepho                    email:  72457.2200@compuserve.com
  374.     2383 N. Dale St. #307
  375.     Roseville, MN 55113            <- jeesh, just 20 minutes from Impulse
  376.     U.S.A.                         world headquarters but in no way related
  377.                                    or connected with the aforementioned
  378.                                    company. Small world eh?
  379.  
  380.  
  381.   ps. _If_ you do want to send me money for IRJ, I'll take checks or cash(I've
  382.   never had any trouble sending cash thru the mail, so don't let that stop you).
  383.   And of course I know you'll have no trouble getting an envelope and a stamp
  384.   and taking all that time to address it and to write a check and... that's
  385.   _IF_ you feel it's worth it(IRJ that is - heck, this doc file is worth five
  386.   bucks - I hate writing all this but hope I did all right).
  387.  
  388.  
  389.   See yah!
  390.  
  391.